package pe.iifiis.rrhh.util;

import java.sql.Connection;
import java.sql.DriverManager;

public class ConexionBDoracle {
	public Connection obtenerConexionBD(){
		Connection conn=null;
		try{
		DriverManager.registerDriver(new oracle.jdbc.OracleDriver());
		conn = DriverManager.getConnection("jdbc:oracle:thin:@200.37.46.161:1521:XE","hr","hr");
		System.out.println("se conecto exitosamente");	
		}catch(Exception e){
			e.printStackTrace();
			System.out.println("no se puede conectar ");	
		}
		return conn;
	}
}
